package com.designpattern.thirdchapter;

public class StartBuzzCoffe {
	
	public static void main(String[] args) {
		Beverage darkRoast = new DarkRoast();
		Mocha mocha = new Mocha(darkRoast);
		Whip whip = new Whip(mocha);
		System.out.println(whip.getDescription() + "--whip---" + whip.cost());
		
		Beverage beverage = new DarkRoast();
		beverage = new Mocha(beverage);
		beverage = new Whip(beverage);
		System.out.println(beverage.getDescription() + "-----" + beverage.cost());
		
		Beverage beverage1 = new Whip(new Mocha(new Soy(new HouseBlend())));
		
		System.out.println(beverage1.getDescription() + "-----" + beverage1.cost());
		
	}
	
	
	

}
